Skip to content

Validation check for main instance during restart#2649

Open
SuperStrongDinosaur wants to merge 1 commit into
google:mainfrom
SuperStrongDinosaur:cant_restart_main_instance
Open

Validation check for main instance during restart#2649
SuperStrongDinosaur wants to merge 1 commit into
google:mainfrom
SuperStrongDinosaur:cant_restart_main_instance

Conversation

@SuperStrongDinosaur
Copy link
Copy Markdown
Collaborator

Added a check to determine if the target instance is the first instance in the group.
If it is the first instance, we check if there are any other active instances in the group. If so, the restart is blocked with the error message

@SuperStrongDinosaur SuperStrongDinosaur force-pushed the cant_restart_main_instance branch from 7bdf234 to d2f0e91 Compare June 3, 2026 15:11
}
CF_EXPECTF(!other_active,
"Restarting the first instance (ID: {}) is not allowed "
"while other instances are running. Restart the entire group instead.",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happens if the entire group is restarted while some instances are stopped? Are those instances [re]started too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants